// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router';
import axios from 'axios';
import MuseUI from 'muse-ui';
import VueClipboard from 'vue-clipboard2';
import 'muse-ui/dist/muse-ui.css';
// import Vuex from 'vuex'
import uploader from 'vue-simple-uploader';
import VueFileUpload from 'vue-file-upload';
import Vant from 'vant';
import 'vant/lib/vant-css/index.css';

// let store = new Vuex.Store({})
Vue.config.productionTip = false;
Vue.use(MuseUI);
Vue.use(VueClipboard);
Vue.use(uploader);
Vue.use(VueFileUpload);
Vue.use(Vant);
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
});
Vue.prototype.$http = axios;
router.beforeEach((to, from, next) => {
  /* 路由发生变化修改页面title */
  if (to.meta.title) {
    document.title = to.meta.title
  }
  next()
})
